/*
Spotter Exercise Manager
Copyright 2011 Evan Nelson.

This file is part of Spotter Exercise Manager.

Spotter Exercise Manager is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Spotter Exercise Manager is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Spotter Exercise Manager.  If not, see <http://www.gnu.org/licenses/>.

The author can be contacted by emailing ean5533@gmail.com
*/

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>

#include "sections/sectionweightlifting.h"
#include "sections/sectionendurance.h"
#include "sections/sectionbodystats.h"
#include "sections/sectionsystem.h"

namespace Ui
{
    class MainWindowClass;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindowClass *ui;

private:
    static const QString baseTitle;  //base title of the main window
    int userID;
    QSqlDatabase db;

    SectionWeightlifting *sectionWeightlifting;
    SectionEndurance *sectionEndurance;
    SectionBodyStats *sectionBodyStats;
    SectionSystem *sectionSystem;
    

private slots:
    void on_navMain_currentChanged(int index);

    //Menu items
    void on_actionQuit_triggered();
    void on_actionAbout_triggered();
    void on_actionManual_triggered();
};





#endif // MAINWINDOW_H
